Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconstruct blobId by excluding partition Id #2910

Closed
wants to merge 1 commit into from

Conversation

SophieGuo410
Copy link
Contributor

No description provided.

@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch from 68bba66 to 3c54211 Compare October 4, 2024 04:05
@SophieGuo410 SophieGuo410 force-pushed the Branch_construct_caspian_blob_name branch from 3c54211 to e057d66 Compare October 4, 2024 16:42
@SophieGuo410 SophieGuo410 marked this pull request as ready for review October 4, 2024 16:42
@@ -845,8 +845,8 @@ public RouterConfig(VerifiableProperties verifiableProperties) {
verifiableProperties.getDoubleInRange(ROUTER_LATENCY_TOLERANCE_QUANTILE, DEFAULT_LATENCY_TOLERANCE_QUANTILE,
0.0, 1.0);
routerBlobidCurrentVersion =
verifiableProperties.getShortFromAllowedValues(ROUTER_BLOBID_CURRENT_VERSION, (short) 6,
new Short[]{1, 2, 3, 4, 5, 6});
verifiableProperties.getShortFromAllowedValues(ROUTER_BLOBID_CURRENT_VERSION, (short) 7,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like we were discussing offline, even though our CFG2 has version as 6, I am wondering if it may not be safe to change default value to 7 until these changes are rolled out!

BlobProperties blobProperties = blobInfo.getBlobProperties();
boolean isSimpleBlob = !options.isChunkUpload() && !options.skipCompositeChunk();
//Chunk upload does not need the customized blobId
BlobId.BlobDataType blobDataType = isSimpleBlob ? BlobId.BlobDataType.SIMPLE : BlobId.BlobDataType.METADATA;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. I think we won't know if it is a "simple blob" or "composite blob" until we read data from Netty. Once we cross 4 MB, it becomes composite blob https://github.com/linkedin/ambry/blob/master/ambry-router/src/main/java/com/github/ambry/router/PutOperation.java#L688. I am wondering if we need to exclude this field as well during Ambry ID -> Caspian ID mapping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants